#include "application.h"


extern INT32U left_capture_num;

void ap_capture_init_TP(void)
{
	OSQPost(DisplayTaskQ, (void *) MSG_DISPLAY_TASK_EFFECT_INIT);

	ap_capture_resolution_display();
	left_capture_num = ap_capture_left_num_calculate();
	ap_capture_left_num_display(left_capture_num);

	#if C_BATTERY_DETECT == CUSTOM_ON
	ap_state_handling_current_bat_lvl_show();
	ap_state_handling_current_charge_icon_show();
	#endif
}

void ap_capture_exit_TP(void)
{
#if (_SENSOR_CSI_FRONT == 0) && (C_REAR_ONLY == CUSTOM_OFF)
	INT32U temp1;
#endif

	ap_state_handling_str_draw_exit();
	ap_capture_resolution_clear();
	ap_capture_left_num_clear();

#if (_SENSOR_CSI_FRONT == 0) && (C_REAR_ONLY == CUSTOM_OFF)
	temp1 = ap_state_config_white_balance_get();
	if(temp1 != 0)
	{
		// DBG_PRINT ("capture reset awbmode to auto!!!\r\n");
		drv_l2_cdsp_set_awb_mode(AWB_AUTO_DC);
	}
#endif
}

